home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7114 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  49 lines

  1. Path: news.nstn.ca!news
  2. From: keichele@ac.dal.ca (Klaus Eichele)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland C 4.52 & Opening Dialog Boxes
  5. Date: Thu, 22 Feb 1996 00:09:33 GMT
  6. Organization: Dalhousie University
  7. Message-ID: <4gfu7k$jr0@news.nstn.ca>
  8. References: <4g9o4v$de8@news.eunet.cz> <4gedfe$b6n@news.iastate.edu>
  9. NNTP-Posting-Host: rewasylishen.chem.dal.ca
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. goeken@iastate.edu (Scott Matthew Goeken) wrote:
  13.  
  14. >Borivoj Kostka <kostka@tovek.cz> wrote:
  15.  
  16. >>wiersch@fastlane.net (Albert Wiersch) writes:
  17. >>> I've noticed a strange problem with my program... Basically, the dialog boxes will open when my program is run with Borland C++ running as
  18. >>> well, but if I try to run the executable without BC, the dialog boxes won't open. What am I missing?
  19. >>> 
  20. >>Try to call EnableBWCC or EnableCtl3d in TApplication
  21. >>constructor.
  22.  
  23. >I'm Having the same problem but I'm not using the TApplication just
  24. >using windowsx.h and windows.h I'm new to windows programming so I
  25. >could be mistaken.
  26. >Is there an iniitilization function that I must call?
  27.  
  28. Hi,
  29. if your dialog boxes use some of the Borland Custom Controls (e.g. the
  30. nice buttons with the bitmaps), the drawing of these controls is
  31. handled by the dynamic link library bwcc.dll (or something similar for
  32. 32 bit apps.). So, in order for the dialog boxes to work, this DLL
  33. needs to be loaded by Windows. If you are running the BC IDE, bwcc.dll
  34. is loaded and therefore things work. If you run your program without
  35. the IDE being loaded also, bwcc.dll will not get loaded and your
  36. dialog boxes fail.  Therefore, to force Windows to load bwcc.dll upon
  37. start of your program, one includes an explicit call to one of the
  38. functions in the bwcc.dll, typically EnableBWCC(). You could do this
  39. right at the beginning of your WinMain(). You will also need to
  40. #include <bwcc.h> into this source file and include bwcc.lib into your
  41. project.
  42.  
  43. Good Luck,
  44. Klaus
  45. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  46. Klaus Eichele         keichele@ac.dal.ca  
  47. http://ac.dal.ca/~keichele/keichele.html
  48.  
  49.